FROM python:3.9

COPY ./requirements.txt ./requirements.txt

RUN mkdir ~/.pip/ \
    && touch ~/.pip/pip.conf \
    && echo '[global]' >> ~/.pip/pip.conf \
    && echo 'index-url=https://mirrors.aliyun.com/pypi/simple/' >> ~/.pip/pip.conf \
    && pip3 install --upgrade pip \
    && pip3 install -r ./requirements.txt \
